#ifndef __USER_H_
#define __USER_H_

#include <string>
using namespace std;

// User表
class User
{
public:
    User(int iId = -1, string strAccount = "", string strNickName = "", string strPassword = "", string strState = "offline")
    {
        this->m_iId = iId;
        this->m_strAccount = strAccount;
        this->m_strNickName = strNickName;
        this->m_strPassword = strPassword;
        this->m_strState = strState;
    }

    void setId(int iId) { this->m_iId = iId; }
    void setAccount(string strAccount) {this->m_strAccount = strAccount;}
    void setNickName(string strNickName) { this->m_strNickName = strNickName; }
    void setPassword(string strPassword) { this->m_strPassword = strPassword; }
    void setState(string strState) { this->m_strState = strState; }

    int getId() { return this->m_iId; }
    string getAccount() {return this->m_strAccount;}
    string getNickName() { return this->m_strNickName; }
    string getPassword() { return this->m_strPassword; }
    string getState() { return this->m_strState; }

protected:
    int m_iId;
    string m_strAccount;
    string m_strNickName;
    string m_strPassword;
    string m_strState;
};

#endif